<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
  <head>
    <title>{% block title %}{% endblock %}</title>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">


    {#css#}
    <link rel="stylesheet" href="/static/css/bootstrap.css" type="text/css">
    <link rel="stylesheet" href="/static/css/bootstrap-responsive.css" type="text/cs<!-- s">
    <link rel="stylesheet" href="/static/css/bootstrap.min.css" type="text/css" >




    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]> -->
    <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <!-- [endif] -->
    <style type="text/css">
      body {
        padding-top: 60px;
        padding-bottom: 40px;
      }
      .sidebar-nav {
        padding: 9px 0;
      }
    </style>
    {% block jq %}
    <script  src="/static/js/jquery.1.9.1.min.js"></script>
    {% endblock %}
    {% block head %}{% endblock %}
  </head>
  <body>
    <div class="container-fluid">
      {#navbar#}
      <div class="navbar navbar-inverse navbar-fixed-top">
        <div class="navbar-inner">
          <div class="container-fluid">
            <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
            </a>
            <a class="brand active" href="{% url 'admin_index' %}">网站后台</a>
            <div class="nav-collapse collapse">
              <p class="navbar-text pull-right">
              欢迎您!&nbsp;
              {% if user.is_superuser %}
              管理员
              {% else %}
              商户
              {% endif %}
              {{ user.username }}
              </p>
              <ul class="nav">
                <li><a href="/">网站首页</a></li>
                <li><a href="{% url 'logout' %}">注销</a></li>
              </ul>
            </div>
          </div>
        </div>
      </div>

      {#功能区#}
      <div class="container-fluid">
        <div class="row-fluid">
          <div class="span2">
            <div class="well sidebar-nav">
              {% include 'function-sidebar.html' %}
            </div><!--/.well -->
          </div><!--/span3-->
          {#主体#}
          <div class="span9">
            {#	<div class="hero-unit"> #}
              {% block main %}

              {% endblock %}
              {#	</div> #}
          </div><!--/span9-->
        </div><!--/row-->
      </div>
      <hr>

      <footer><p>&copy; Company 2012</p></footer><!--/footer-->

    </div><!--/.fluid-container-->

    <script  src="/static/js/bootstrap.js"></script>
    <script  src="/static/js/holder.js"></script>
    <script  src="/static/js/bootstrap-tab.js"></script>


  </body>
</html>
